#include <iostream>
#include <string>
#include <unordered_map>
using namespace std;
unordered_map<string, bool> h;
int main() {
    int n;
    cin >> n;
    int ans = 0;
    for(int i = 0; i < n; i++) {
        string temp;
        cin >> temp;
        if(h[temp] == false)
        {
            h[temp] = true;
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}